﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Test 1 Click to show and hide</title>

    <script src="jquery-1.7.2.js" type="text/javascript"></script>

    <script type="text/javascript">
        var isHidden = false;
        function Button1_onclick() {
            if (isHidden) {
                $(goose).show('fast');
                isHidden = false;
            } else {
                $(goose).hide('fast');
                isHidden = true;
            }
        }

    </script>

</head>
<body>
    <p>
        <img alt="" src="天鵝.jpg" style="width: 515px; height: 380px" id="goose" />
        <input id="Button1" type="button" value="button" onclick="return Button1_onclick()" />
    </p>
</body>
</html>
